package com.example.night.data.Good;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class Good {

    private long paid;

    @JsonProperty("activity_url")
    private String activityUrl;

    private double price;

    @JsonProperty("kol_cos_ratio")
    private double kolCosRatio;

    @JsonProperty("cos_ratio")
    private double cosRatio;

    @JsonProperty("stock_num")
    private int stockNum;

    @JsonProperty("pick_num")
    private int pickNum;

    @JsonProperty("pick_finished_num")
    private int pickFinishedNum;

    @JsonProperty("pick_ongoing_num")
    private int pickOngoingNum;

    @JsonProperty("is_video_deliver")
    private int isVideoDeliver;

    @JsonProperty("is_live_deliver")
    private int isLiveDeliver;

    @JsonProperty("is_refine")
    private int isRefine;

    @JsonProperty("is_free")
    private int isFree;

    private List<String> tags;

    private int status;

    @JsonProperty("add_time")
    private long addTime;

    private String remark;

    @Data
    public static class Shop {
        private String name;

        @JsonProperty("shop_id")
        private String shopId;

        private String logo;
        private Double score;

        @JsonProperty("score_rating")
        private String scoreRating;

        @JsonProperty("product_score")
        private Double productScore;

        @JsonProperty("product_rating")
        private String productRating;

        @JsonProperty("shop_score")
        private Double shopScore;

        @JsonProperty("shop_rating")
        private String shopRating;

        @JsonProperty("logistics_score")
        private Double logisticsScore;

        @JsonProperty("logistics_rating")
        private String logisticsRating;

        private String category;
    }

    private Shop shop;

    @JsonProperty("is_top")
    private int isTop;

    @JsonProperty("elastic_title")
    private String elasticTitle;

    @JsonProperty("promotion_start_time")
    private long promotionStartTime;

    @JsonProperty("promotion_end_time")
    private long promotionEndTime;

    @JsonProperty("service_ratio")
    private double serviceRatio;

    @JsonProperty("activity_type")
    private boolean activityType;

    @JsonProperty("ext_status")
    private int extStatus;

    @JsonProperty("account_groups")
    private List<Object> accountGroups;

    @JsonProperty("is_second")
    private int isSecond;

    @JsonProperty("origin_institution_name")
    private String originInstitutionName;

    @JsonProperty("bu_yin_activity_id")
    private long buYinActivityId;

    @JsonProperty("product_id")
    private String productId;

    private String title;
    private String cover;
    private String url;

    @JsonProperty("is_pick")
    private boolean isPick;

    @JsonProperty("product_type")
    private int productType;
}
